package com.zcup.designer.behavior.visitor;

public class ConcreteVisitor1 extends Visitor {

    @Override
    void visitConcreteElementA(ConcreteElementA elementA) {
        System.out.println(this.getClass().getName() + "\t visited " + elementA.getClass().getName());
    }

    @Override
    void visitConcreteElementB(ConcreteElementB elementB) {
        System.out.println(this.getClass().getName() + "\t visited " + elementB.getClass().getName());

    }
}
